]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
padOsd: Disable ellipsizing in title label
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 28 May 2020 11:36:25 +0000 (13:36 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 29 May 2020 18:06:48 +0000 (18:06 +0000)
We make the label text large and let it ellipsize. It ends up doing
so instead of allowing the label to expand. This title is important
and we don't want it to be ellipsized, so ensure that won't happen.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2845
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1290

js/ui/padOsd.js

index ddeb28e7d09127dfb2d18ecad5be24fabe256171..d898c3560caa97c890d33c98c6cb1273484ecabc 100644 (file)
@@ -2,7 +2,7 @@
 /* exported PadOsd, PadOsdService */
 
 const { Atk, Clutter, GDesktopEnums, Gio,
-        GLib, GObject, Gtk, Meta, Rsvg, St } = imports.gi;
+        GLib, GObject, Gtk, Meta, Pango, Rsvg, St } = imports.gi;
 const Signals = imports.signals;
 
 const Main = imports.ui.main;
@@ -693,6 +693,7 @@ var PadOsd = GObject.registerClass({
 
         this._titleLabel = new St.Label({ style: 'font-side: larger; font-weight: bold;',
                                           x_align: Clutter.ActorAlign.CENTER });
+        this._titleLabel.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);
         this._titleLabel.clutter_text.set_text(padDevice.get_device_name());
         labelBox.add_actor(this._titleLabel);